/**
 * Created by Aquila on 2015/12/10.
 */
(function ($) {
    $.extend({
        readonly: function () {
            $('input:text').attr('readonly', 'readonly');
            $('textarea').attr('readonly', 'readonly');
            $('input:checkbox').attr('disabled', true);
            $('select').attr('disabled', true);
            $('.add-another').hide();
            $('.add-row').hide();
            $('#id_email').attr('readonly', 'readonly');
        }
    });
});
